<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2025安全生产年倒计时 - 托里县招金北疆矿业有限公司</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        
        .container {
            background-color: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            padding: 40px;
            text-align: center;
            max-width: 900px;
            width: 100%;
            transition: all 0.3s ease;
        }
        
        .header {
            margin-bottom: 30px;
        }
        
        .company-name {
            color: #2c3e50;
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .title {
            color: #3498db;
            font-size: 36px;
            margin-bottom: 20px;
            font-weight: bold;
        }
        
        .countdown-container {
            background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
            border-radius: 12px;
            padding: 30px;
            color: white;
            margin: 30px 0;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .days-text {
            font-size: 24px;
            margin-bottom: 20px;
        }
        
        .days-wrapper {
            display: flex;
            justify-content: center;
            align-items: baseline;
            margin: 10px 0;
        }
        
        .days-count {
            font-size: 80px;
            font-weight: bold;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        .days-unit {
            font-size: 40px;
            margin-left: 10px;
            font-weight: bold;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        .target-date {
            font-size: 18px;
            margin-top: 15px;
            opacity: 0.9;
        }
        
        .detailed-countdown {
            display: flex;
            justify-content: space-around;
            margin: 30px 0;
            flex-wrap: wrap;
        }
        
        .time-card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            width: 30%;
            min-width: 120px;
            margin: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }
        
        .time-card:hover {
            transform: translateY(-5px);
        }
        
        .time-value {
            font-size: 40px;
            font-weight: bold;
            color: #3498db;
            margin: 10px 0;
        }
        
        .time-label {
            font-size: 16px;
            color: #7f8c8d;
        }
        
        .safety-message {
            font-size: 22px;
            color: #2c3e50;
            margin: 25px 0;
            font-weight: bold;
            line-height: 1.5;
        }
        
        .safety-tips {
            background-color: #e8f4fc;
            border-left: 5px solid #3498db;
            padding: 15px;
            text-align: left;
            margin: 20px 0;
            border-radius: 0 8px 8px 0;
        }
        
        .safety-tips h3 {
            color: #2c3e50;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }
        
        .safety-tips h3 i {
            margin-right: 10px;
            color: #3498db;
        }
        
        .safety-tips ul {
            list-style-type: none;
            padding-left: 10px;
        }
        
        .safety-tips li {
            margin-bottom: 8px;
            padding-left: 20px;
            position: relative;
        }
        
        .safety-tips li:before {
            content: "•";
            color: #3498db;
            font-weight: bold;
            position: absolute;
            left: 0;
        }
        
        .footer {
            margin-top: 30px;
            color: #7f8c8d;
            font-size: 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .last-updated {
            font-size: 12px;
            font-style: italic;
        }
        
        @media (max-width: 768px) {
            .detailed-countdown {
                justify-content: center;
            }
            
            .time-card {
                width: 40%;
            }
        }
        
        @media (max-width: 600px) {
            .container {
                padding: 20px;
            }
            
            .title {
                font-size: 28px;
            }
            
            .days-count {
                font-size: 60px;
            }
            
            .days-unit {
                font-size: 30px;
            }
            
            .safety-message {
                font-size: 18px;
            }
            
            .time-card {
                width: 100%;
            }
            
            .footer {
                flex-direction: column;
            }
            
            .last-updated {
                margin-top: 10px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="company-name">托里县招金北疆矿业有限公司</div>
            <h1 class="title">安全生产年倒计时</h1>
        </div>
        
        <div class="countdown-container">
            <div class="days-text">距离2025安全生产年还剩</div>
            <div class="days-wrapper">
                <div class="days-count" id="days">365</div>
                <div class="days-unit">天</div>
            </div>
            <div class="target-date">目标日期：2025年12月31日 23:59:59</div>
        </div>
        
        <div class="detailed-countdown">
            <div class="time-card">
                <div class="time-value" id="hours">00</div>
                <div class="time-label">小时</div>
            </div>
            <div class="time-card">
                <div class="time-value" id="minutes">00</div>
                <div class="time-label">分钟</div>
            </div>
            <div class="time-card">
                <div class="time-value" id="seconds">00</div>
                <div class="time-label">秒钟</div>
            </div>
        </div>
        
        <div class="safety-message">
            "安全第一，预防为主，综合治理"
        </div>
        
        <div class="safety-tips">
            <h3><i class="fas fa-exclamation-circle"></i>安全生产提醒：</h3>
            <ul>
                <li>严格遵守安全操作规程，杜绝违章作业</li>
                <li>定期进行安全检查，及时消除事故隐患</li>
                <li>正确使用劳动防护用品，保障个人安全</li>
                <li>加强员工安全培训，提高安全意识</li>
                <li>完善应急预案，提高应急处置能力</li>
            </ul>
        </div>
        
        <div class="footer">
            <div>© 2025 托里县招金北疆矿业有限公司 - 安全生产科</div>
            <div class="last-updated" id="update-time">最后更新: --</div>
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 设置目标日期：2025年12月31日
            const targetDate = new Date('December 31, 2025 23:59:59');
            
            function updateCountdown() {
                // 获取当前时间
                const now = new Date();
                
                // 计算剩余时间（毫秒）
                const timeRemaining = targetDate - now;
                
                // 计算剩余天数
                const days = Math.floor(timeRemaining / (1000 * 60 * 60 * 24));
                
                // 计算剩余小时、分钟和秒
                const hours = Math.floor((timeRemaining % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
                const minutes = Math.floor((timeRemaining % (1000 * 60 * 60)) / (1000 * 60));
                const seconds = Math.floor((timeRemaining % (1000 * 60)) / 1000);
                
                // 更新显示
                document.getElementById('days').textContent = days;
                document.getElementById('hours').textContent = hours.toString().padStart(2, '0');
                document.getElementById('minutes').textContent = minutes.toString().padStart(2, '0');
                document.getElementById('seconds').textContent = seconds.toString().padStart(2, '0');
                
                // 更新最后刷新时间
                document.getElementById('update-time').textContent = 
                    '最后更新: ' + now.toLocaleDateString() + ' ' + now.toLocaleTimeString();
                
                // 如果日期已过
                if (timeRemaining < 0) {
                    document.getElementById('days').textContent = '0';
                    document.getElementById('hours').textContent = '00';
                    document.getElementById('minutes').textContent = '00';
                    document.getElementById('seconds').textContent = '00';
                    document.querySelector('.days-text').textContent = '已实现2025年安全生产目标！';
                    clearInterval(countdownInterval);
                }
            }
            
            // 初始更新
            updateCountdown();
            
            // 设置定时器，每秒更新一次
            const countdownInterval = setInterval(updateCountdown, 1000);
        });
    </script>
</body>
</html>